package com.njtoyo.taxi.admin.mapper.master.entity.local_service;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMemberPickupInfoState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员提货信息表
 * </p>
 *
 * @author Dell
 * @since 2022-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LifeMemberPickupInfo对象", description = "会员提货信息表")
public class LifeMemberPickupInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "商家ID")
    private Long merchantId;

    @ApiModelProperty(value = "关联订单表ID")
    private Long refId;

    @ApiModelProperty(value = "状态 0:no_written_off[待核销],1:written_off[已核销],2:expired[已过期],")
    private LifeMemberPickupInfoState state;

    @ApiModelProperty(value = "核销码")
    private String writeOffCode;

    @ApiModelProperty(value = "核销时间戳")
    private Integer writeOffTimestamp;

    @ApiModelProperty(value = "提货开始时间戳")
    private Integer pickupStartTimestamp;

    @ApiModelProperty(value = "提货结束时间戳")
    private Integer pickupEndTimestamp;

    @ApiModelProperty(value = "核销人员ID")
    private Long merchantAccountId;

    @ApiModelProperty(value = "自提点ID")
    private Long pickupLocationId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

}
